package org.lemon.cla.converter;

import org.lemon.cla.enums.ClubStatusEnum;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
class ClubStatusEnumConverter implements Converter<String, ClubStatusEnum> {
    @Override
    public ClubStatusEnum convert(String source) {
        return ClubStatusEnum.fromDescription(source);
    }
}